import { request } from "@/utils/request.js";

//手机验证码登录
export function phoneLogin(data) {
    return request({
        methods: "POST",
        url: '/login',
        data,
    })
}

// 密码登录
export function pwsLogin(data) {
    return request({
        methods: "POST",
        url: '/pwsLogin',
        data,
    })
}

//注册
export function register(data) {
    return request({
        methods: "POST",
        url: '/register',
        data,
    })
}

//忘记密码
export function forgetPws(data) {
    return request({
        methods: "POST",
        url: '/resetPws',
        data,
    })
}